.class public Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;
.super Lcom/hierynomus/smbj/smb2/d;
.source "SMB2QueryDirectoryRequest.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest$SMB2QueryDirectoryFlags;
    }
.end annotation


# instance fields
.field c:J

.field private d:Lcom/hierynomus/msfscc/FileInformationClass;

.field private final e:Ljava/util/EnumSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest$SMB2QueryDirectoryFlags;",
            ">;"
        }
    .end annotation
.end field

.field private final f:J

.field private final g:Lcom/hierynomus/smbj/smb2/a;

.field private final h:Ljava/lang/String;


# direct methods
.method public constructor <init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/a;Lcom/hierynomus/msfscc/FileInformationClass;Ljava/util/EnumSet;JLjava/lang/String;)V
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/hierynomus/smbj/smb2/SMB2Dialect;",
            "JJ",
            "Lcom/hierynomus/smbj/smb2/a;",
            "Lcom/hierynomus/msfscc/FileInformationClass;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest$SMB2QueryDirectoryFlags;",
            ">;J",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    move-object v8, p0

    .line 1
    sget-object v3, Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;->SMB2_QUERY_DIRECTORY:Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;

    const/16 v1, 0x21

    move-object v0, p0

    move-object v2, p1

    move-wide v4, p2

    move-wide v6, p4

    invoke-direct/range {v0 .. v7}, Lcom/hierynomus/smbj/smb2/d;-><init>(ILcom/hierynomus/smbj/smb2/SMB2Dialect;Lcom/hierynomus/smbj/smb2/SMB2MessageCommandCode;JJ)V

    const-wide/32 v0, 0x10000

    .line 2
    iput-wide v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->c:J

    move-object/from16 v0, p7

    .line 3
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->d:Lcom/hierynomus/msfscc/FileInformationClass;

    move-object/from16 v0, p8

    .line 4
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->e:Ljava/util/EnumSet;

    move-wide/from16 v0, p9

    .line 5
    iput-wide v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->f:J

    move-object v0, p6

    .line 6
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->g:Lcom/hierynomus/smbj/smb2/a;

    if-nez p11, :cond_0

    const-string v0, "*"

    goto :goto_0

    :cond_0
    move-object/from16 v0, p11

    .line 7
    :goto_0
    iput-object v0, v8, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->h:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method protected d(Lcom/hierynomus/smbj/common/b;)V
    .locals 2

    .line 1
    iget v0, p0, Lcom/hierynomus/smbj/smb2/d;->b:I

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 2
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->d:Lcom/hierynomus/msfscc/FileInformationClass;

    invoke-virtual {v0}, Lcom/hierynomus/msfscc/FileInformationClass;->getValue()J

    move-result-wide v0

    long-to-int v1, v0

    int-to-byte v0, v1

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a(B)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 3
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->e:Ljava/util/EnumSet;

    invoke-static {v0}, Les/ed0$a;->a(Ljava/util/Collection;)J

    move-result-wide v0

    long-to-int v1, v0

    int-to-byte v0, v1

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->a(B)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 4
    iget-wide v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->f:J

    invoke-virtual {p1, v0, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 5
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->g:Lcom/hierynomus/smbj/smb2/a;

    invoke-virtual {v0, p1}, Lcom/hierynomus/smbj/smb2/a;->a(Lcom/hierynomus/smbj/common/b;)V

    const/16 v0, 0x60

    .line 6
    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 7
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->h:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    mul-int/lit8 v0, v0, 0x2

    invoke-virtual {p1, v0}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->c(I)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 8
    iget-wide v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->c:J

    invoke-virtual {p1, v0, v1}, Lcom/hierynomus/protocol/commons/buffer/Buffer;->b(J)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    .line 9
    iget-object v0, p0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;->h:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/hierynomus/smbj/common/b;->a(Ljava/lang/String;)Lcom/hierynomus/protocol/commons/buffer/Buffer;

    return-void
.end method
